package com.ltu.timkor6.gamesite.shared;

import java.io.Serializable;

@SuppressWarnings("serial")
public class UserInfo implements Serializable
{
	private boolean admin = false;
	private String password = null;
	private String userName = null;
	
	public UserInfo()
	{
	}
	
	public UserInfo(String userName, String password)
	{
		this.password = password;
		this.userName = userName;
	}
	
	public UserInfo(String userName, String password, boolean admin)
	{
		this.password = password;
		this.userName = userName;
		this.admin = admin;
	}
	
	public boolean isAdmin()
	{
		return this.admin;
	}
	
	public String getPassword()
	{
		return this.password;
	}
	
	public String getUserName()
	{
		return this.userName;
	}
	
	public void setIsAdmin(boolean value)
	{
		this.admin = value;
	}
	
	public void setPassword(String value)
	{
		this.password = value;
	}
	
	public void setUserName(String value)
	{
		this.userName = value;
	}
}
